package code

var ResponseCodeMsg map[string]string

func initMsg() {
	ResponseCodeMsg = make(map[string]string)

	ResponseCodeMsg[ResponseCode["SUCCESS"]] = "ok"

	//用户关系
	ResponseCodeMsg[ResponseCode["USER_NOT_EXIST"]] = "用户不存在"
	ResponseCodeMsg[ResponseCode["USER_PASS_ERROR"]] = "密码错误"
	ResponseCodeMsg[ResponseCode["USER_EXIST_OR_FAIL_PASS"]] = "账号或者密码错误"
	ResponseCodeMsg[ResponseCode["LOGIN_CODE_ERROR"]] = "验证码错误"
	ResponseCodeMsg[ResponseCode["USER_ALREADY_EXISTS"]] = "账号或者密码错误"
	ResponseCodeMsg[ResponseCode["MOBILE_ALREADY_EXISTS"]] = "手机号已经重复"
	ResponseCodeMsg[ResponseCode["EMAIL_ALREADY_EXISTS"]] = "邮箱已经重复"
	ResponseCodeMsg[ResponseCode["OLD_PASS_ERROR"]] = "旧密码错误"

	//数据描述
	ResponseCodeMsg[ResponseCode["DATA_NOT_EXIST"]] = "数据不存在"
	ResponseCodeMsg[ResponseCode["DATA_ALREADY_EXIST"]] = "数据重复了"
	ResponseCodeMsg[ResponseCode["KEY_ALREADY_EXIST"]] = "key重复了"

	//系统错误
	ResponseCodeMsg[ResponseCode["SYSTEM_ERROR_METHOD"]] = "请求方法不正确"
	ResponseCodeMsg[ResponseCode["EXCEPTION_MESSAGE"]] = "异常错误"
	ResponseCodeMsg[ResponseCode["MODEL_NO_DEFINE"]] = "模型没有在控制器上定义"
	ResponseCodeMsg[ResponseCode["AUTH_NO_PASS"]] = "没有通过权限"
	ResponseCodeMsg[ResponseCode["UPLOAD_FAIL"]] = "文件上传失败"
	ResponseCodeMsg[ResponseCode["VALIDATE_FAIL"]] = "校验数据未通过"
	ResponseCodeMsg[ResponseCode["THIRD_API_FAIL"]] = "第三方接口失败"
	ResponseCodeMsg[ResponseCode["DIR_NOT_ACCESS"]] = "目录没有权限"
	ResponseCodeMsg[ResponseCode["FILE_TOO_BIG"]] = "文件太大"
}
